
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>JSP2</title>
</head>
<body>
<%
    String id;
    request.setCharacterEncoding("UTF-8");
    id=request.getParameter("id")+" Hello";
%>
<form action="Servlet1">
    <input type="text" value=<%=id%>>
    <button type="submit">提交</button>
</form>
</body>
</html>
